import request from "@/api/request"

//查询素材列表
function findMaterialByPage(start,limit,data) {
  return request({
    url: `/lejuAdmin/material/findMaterialByPage/${start}/${limit}`,
    data
  })
}
//删除素材文件
function delMaterial(id,data) {
  return request({
    url: `/lejuAdmin/material/delMaterial/${id}`,
    method:"DELETE",
    data
  })
}
//素材上传
function uploadFileOssSave(data) {
  return request({
    url: "/lejuAdmin/material/uploadFileOssSave",
    method:"POST",
    data
  })
}

export{
  findMaterialByPage,delMaterial,uploadFileOssSave
}